#include <bits/stdc++.h>
// 2025/02/07
// tag: 
// Author: Zhang Muen
using namespace std;

using int64 = int64_t;

int n, k;
double Line[10001];

bool check(double l){
    int cnt = 0;
    for (int i = 1; i <= n; i++)
        cnt += int(Line[i] / l);
    return cnt >= k;
}

signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cin >> n >> k;
    for (int i = 1; i <= n; i++)
        cin >> Line[i];
    double l = 0, r = 100000;
    while (r - l >= 1e-7){
        double mid = (l + r) / 2;
        if (check(mid))
            l = mid;
        else
            r = mid;
    }
    cout << r;
    return 0;
}